package com.sun.mapper;

import com.sun.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author wst
 * @create 2021-02-06
 */
public interface UserMapper {
    public long insertLabUser(User user);

    public User findUserByUserName(String username);

    public User findUserById(int id);

    public int editByUser(User user);

    public int updateUserToken(@Param("id") int id, @Param("token") String token);

    public String getUserToken(int id);

    public String getTokenByUsername(String username);
}
